import ajax from '../http';

export const updateMedicationApi = (params) => {
  return ajax.put(`/medication/${params.id}`,
    JSON.stringify(params),
    {headers: {'Content-Type': 'application/json'}}
  )
};

export const createMedicationApi = (params) => {
  return ajax.post('/medication',
    JSON.stringify(params),
    {
      headers: {'Content-Type': 'application/json'}
    }
  )
};
